package com.aijk.ehm.sys.api;

import com.aijk.commons.exception.ErrorCodeException;
import com.aijk.ehm.sys.model.SysModule;
import com.aijk.ehm.sys.model.qo.ModuleQo;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * Created by lenovo on 2016/11/16.
 */
public interface ModuleApi {
    PageInfo<SysModule> getPage(ModuleQo ModuleQo)throws ErrorCodeException;

    SysModule get(Integer id) throws ErrorCodeException;

    List<SysModule> get(ModuleQo ModuleQo) throws ErrorCodeException;

    int save(SysModule record)  throws ErrorCodeException;

    int updateByPrimary(SysModule record)  throws ErrorCodeException;

    int delete(Integer id)  throws ErrorCodeException;

}
